package top.revery.admin.controller_common;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.revery.admin.util.FeignServiceMapping;
import top.revery.api.config.HttpResponResult;
import top.revery.api.config.ResultType;
import top.revery.api.entity.other.BaseHotKeyword;

import java.util.List;

/**
 * <h1> ---  --- </h1>
 * Created by  revery.top jun
 * Date  2020-01-16 16:09
 */
@RestController
@RequestMapping("/common/hotkeyword/")
public class HotKeyWordService {

    @RequestMapping("/getList")
    Object getList(){
        List<BaseHotKeyword> hotKeywords = FeignServiceMapping.hotKeyWordDataSource.getList();

        HttpResponResult responResult = new HttpResponResult(ResultType.SUCCESS);
        responResult.put("List",hotKeywords);

        return responResult;
    }

}
